FROM ccr.ccs.tencentyun.com/shaco_work/jre:21_ubuntu22

# 复制构建时镜像的构建结果
WORKDIR /opt/app
COPY "pangolin-headless-server/target/pangolin-headless-server.jar" /opt/app/app.jar

ARG appMaxMemory=256m
ENV APP_MAX_MEMORY=${appMaxMemory}

CMD [ "bash", "-c", "source /etc/profile && java -Xmx$APP_MAX_MEMORY -Xms$APP_MAX_MEMORY -jar /opt/app/app.jar -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"]